<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script src="js/vue.js"></script>
  <script src="js/jquery-3.5.1.min.js"></script>
  <title>vue数据驱动</title>
</head>

<body>
  <div id="app">
    <!-- vue只修饰挂载点内的数据 -->
    {{msg}}
    <h1>{{address}}</h1>
    <h2>{{address}}</h2>
    <h3>{{address}}</h3>
    <h4>{{address}}</h4>
    <h5>{{address}}</h5>
    <h6>{{address}}</h6>
    <input type="text" v-model="address" name="address" id="address">
  </div>
  <script>
    // 可以操作vm.address
    let vm = new Vue({
      el: "#app",
      data: {
        msg: "hello",
        address: "北京天安门"
      }
    })
  </script>
</body>

</html>